//
//  DZNewsCellLayout.h
//  好奇心日报
//
//  Created by 董筱泽 on 2017/11/25.
//  Copyright © 2017年 董筱泽. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DZResponseMedel.h"

/// 风格
typedef NS_ENUM(NSUInteger, DZNewsCellLayoutStyle) {
    DZNewsCellLayoutStyleAbove = 0,         // cellType = 0,图片在上，文字在下
    DZNewsCellLayoutStyleRight = 1,         // cellType = 1,图片在右，文字在左
    DZNewsCellLayoutStyleDetails = 2,       // cellType = 2,图片在上，文字在下，下方有“评论”和“喜欢”数值
};

@interface DZNewsCellLayout : NSObject
@property (nonatomic, assign) DZNewsCellLayoutStyle style;   // cell风格
@property (nonatomic, assign, readonly) CGFloat height;       // cell高度
@property (nonatomic, strong) DZFeedsModel *model;           // 数据

- (instancetype)initWithModel:(DZFeedsModel *)model style:(DZNewsCellLayoutStyle)style;
@end
